<?php echo $open;?>
<div id="body">
    <div id="topstatus">
        <p>Welcome <?php echo (isset($user_name)) ? $user_name : 'Anonymous';?> 
            | <a href="<?php echo base_url();?>">Home</a> 
            <?php if($this->session->userdata('islogged')) { ?>
            | <a href="<?php echo base_url();?>cp/logout">Logout</a>
            <?php } ?>
        </p>
    </div>
    <div style="height:20px;"></div>
    <div id="main-con">
        <div id="main-wrap">
            <?php if($this->session->userdata('islogged')) { ?>
            <div id="header-con">
                <?php echo $menu;?>
            </div>
            <?php } ?>
            <div class="separator" style="height: 10px;"></div>
            <div id="content-con">
                <div id="content-wrap">
                    <?php echo $content;?>
                </div>
            </div>
            <div id="footer-con">
                
            </div>
        </div>
    </div>
</div>
<?php echo $close;?>